<?php

namespace App\Providers;

use Illuminate\Support\ServiceProvider;

class AppServiceProvider extends ServiceProvider
{
    /**
     * Bootstrap any application services.
     *
     * @return void
     */
    public function boot()
    {
        //
    }

    /**
     * Register any application services.
     *
     * @return void
     */
    public function register()
    {
        //后台
        $this->app->singleton('RzjhpAdminRepository', function ($app) {
            return new \App\Repository\Service\RzjhpAdminService();
        });
        //日志
        $this->app->singleton('RzjhpLogRepository', function ($app) {
            return new \App\Repository\Service\RzjhpLogService();
        });
        //游戏
        $this->app->singleton('RzjhpGameRepository', function ($app) {
            return new \App\Repository\Service\RzjhpGameService();
        });
    }
}
